//
// Created by Administrator on 2021/11/16.
// 打开文件并统计文件中以空格隔开的单词数目

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

int main()
{
    int count = 0;
    string word;
    ifstream in("Word.txt");
    while(in >> word)
    {
        ++count;
    }
    cout << "The count is: " << count << endl;
}

